<template>
    <vxe-table
        v-bind="$attrs"

    >
        <vxe-table-column
            v-for="col in columns"
            :key="col.code"
            :title="col.label"
            :width="col.width"
            :field="col.code"
            :showOverflow="col.showOverflow ? col.showOverflow : 'title'"
            :min-width="100"
        >
            <!-- <template v-slot="scope">
                <vxe-cell-render
                        :field="item"
                        :data="scope">
                </vxe-cell-render>
            </template> -->
        </vxe-table-column>
    </vxe-table>
</template>
<script>
export default {
    props: {
        columns: {
            type: Array,
            default: () => ([])
        }
    }
}
</script>